package com.shart.work.core;

import com.shart.work.util.DictType;
import com.shart.work.util.Excel;


public class User {

    @Excel(type = "导入", titleName = "编号")
    private Long no;
    @Excel(type = "导出", titleName = "姓名")
    private String name;
    @Excel(type = "导出", titleName = "年龄")
    private Integer age;
    @Excel(type = "导出", titleName = "邮箱")
    private String email;
    @Excel(type = "导出", titleName = "状态",dictType = DictType.USER_STATUS)
    private String status;
    @Excel(type = "导出",titleName = "单价")
    private Double price;
    public void setEmail(String email) {
        this.email = email;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice() {
        return price;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setNo(Long no) {
        this.no = no;
    }

    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public Long getNo() {
        return no;
    }

    public String getEmail() {
        return email;
    }

    public String getStatus() {
        return status;
    }

    public User() {
    }

    public User(Long no, String name, Integer age,String  email,String status,Double price) {
        this.no = no;
        this.name = name;
        this.age = age;
        this.email=email;
        this.status=status;
        this.price=price;
    }

    @Override
    public String toString() {
        return "User{" +
                "no=" + no +
                ", name='" + name + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", status='" + status + '\'' +
                ", price=" + price +
                '}';
    }
}
